<template>
  <a-config-provider>
    <router-view />
  </a-config-provider>
</template>
<script setup>
import { onMounted } from 'vue';
import { DARK_MODE } from './config/constants';
onMounted(() => {
  let darkModeValue = localStorage.getItem(DARK_MODE)
  if (darkModeValue && darkModeValue == 'dark') {
    document.body.setAttribute('arco-theme', 'dark')
  } else {
    document.body.removeAttribute('arco-theme')
  }
})
</script>
<style></style>